﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SSN.WebFramework
{
    /// <summary>
    /// Represents a linked rep to a user.
    /// </summary>
    public class LinkedRep
    {
        /// <summary>
        /// The type of link.
        /// </summary>
        public LinkedRepType LinkType { get; private set; }

        /// <summary>
        /// Rep number.
        /// </summary>
        public string RepNumber { get; private set; }

        /// <summary>
        /// Name of the rep;
        /// </summary>
        public string Name { get; private set; }


        public LinkedRep(string repNumber, LinkedRepType linkType, string name)
        {
            LinkType = linkType;
            RepNumber = repNumber.Trim().ToUpper();
            Name = name;
        }

        public override string ToString()
        {
            return string.Format("({0}) - {1}", RepNumber, Name);
        }
    }
}
